<!--
 * @Author: 王洋
 * @Date: 2022-02-29 16:45:50
 * @LastEditTime: 2022-02-29 16:45:50
 * @LastEditors: 王洋
 * @Description:
 * @FilePath: \icm\icm-vue\src\views\hifar\common\CostPrintModel.vue
-->
<template>
  <j-modal
    :title="'打印'+title"
    :width="900"
    :visible="visible"
    :maskClosable="false"
    switchFullscreen
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel">
    <iframe :src="src()" width="100%" height="700px" scrolling="no"></iframe>
  </j-modal>
</template>

<script>
export default {
  name: 'cost-print-model',
  data() {
    return {
      id:"",
      title:'',
      visible: false,
      disableSubmit:true
    }
  },
  methods:{
    src(){
      return `${window._CONFIG['domianURL']}/jmreport/view/1498129235225743360?id=${this.id}`
    },
    open () {
      this.visible=true
    },
    handleCancel () {
      this.visible = false;
    }
  }
}
</script>

<style scoped>
</style>